]> dgit.raspbian.org Git - gnome-shell.git/commit
tray/na-xembed: Destroy socket window when ending the embedding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 03:56:48 +0000 (05:56 +0200)
committerSimon McVittie <smcv@debian.org>
Wed, 6 Nov 2024 15:05:15 +0000 (15:05 +0000)
commita45214d94544b71ec88a2cff58fa9ba4bb736dfd
tree5485887bf9c2c5e40fe581be34daf49c0e877e1b
parent3d8d241b5829fa5376fd0ba519746a8b1951835c
tray/na-xembed: Destroy socket window when ending the embedding

Currently when embedding a tray icon is ended we are leaving the X11
socket window around as we don't really destroy it, while we're just
listening for its child destruction.

So, when embedding is ending we need to make sure that:
 - If the plug window is still alive, move it back to its old parent
   (normally that's the root window, but we query for it, to be sure)
 - If the plug window has been already destroyed or reparented (by us or
   by something else), we've to just destroy the socket window

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7614
Origin: https://gitlab.gnome.org/3v1n0/gnome-shell/-/commits/tray-offscreen-xwindows
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2012388

Gbp-Pq: Topic tray-icons
Gbp-Pq: Name tray-na-xembed-Destroy-socket-window-when-ending-the-embe.patch
src/tray/na-xembed.c